import request from '@/utils/request'

// 查询群发短信信息列表
export function listSendsms(query) {
  return request({
    url: '/system/sendsms/list',
    method: 'get',
    params: query
  })
}

// 查询群发短信信息详细
export function getSendsms(id) {
  return request({
    url: '/system/sendsms/' + id,
    method: 'get'
  })
}

// 新增群发短信信息
export function addSendsms(data) {
  return request({
    url: '/system/sendsms',
    method: 'post',
    data: data
  })
}

// 修改群发短信信息
export function updateSendsms(data) {
  return request({
    url: '/system/sendsms',
    method: 'put',
    data: data
  })
}

// 删除群发短信信息
export function delSendsms(id) {
  return request({
    url: '/system/sendsms/' + id,
    method: 'delete'
  })
}
